package com.sxt;

import java.awt.*;

/**
 * 游戏胜利或者失败之后出现的两个按钮
 * 1. 重新开始
 * 2. 结束游戏
 */

public class GameOverButton extends GameObject{

    public GameOverButton() {
        super();
    }

    public GameOverButton(String image, GameWin frame) {
        super(image, frame);
    }

    public GameOverButton(String image, int x, int y, int speedY, GameWin frame) {
        super(image, x, y, speedY, frame);
    }

    public GameOverButton(String image, int x, int y, int width, int height, int speedY, GameWin frame) {
        super(image, x, y, width, height, speedY, frame);
    }

    @Override
    public void paintSelf(Graphics s) {
        s.drawImage(image,x,y,null);
    }

    @Override
    public Rectangle getRec() {
        return new Rectangle(x, y, GameWin.FAIL_BUTTON_WIDTH, GameWin.FAIL_BUTTON_HEIGHT);
    }

    public void DeBug() {
        System.out.println("FailButton Class");
    }
}
